// 全局注册响应式echarts中间件
import charts from "./echarts";
const components = {
  charts
};

const plugin = Vue => {
  if (plugin.installed) {
    return false;
  }
  let eleName = Object.keys(components);
  eleName.forEach(ele => {
    Vue.component(ele, components[ele]);
  });
};

export default plugin;